package com.whmskj.xjlhbc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whmskj.xjlhbc.core.AjaxResult;
import com.whmskj.xjlhbc.domain.CorpMember;
import com.whmskj.xjlhbc.domain.PersonnelManagementDataSheets;
import com.whmskj.xjlhbc.domain.Ry1402GroupTable;
import com.whmskj.xjlhbc.dto.PersonnelManagementDto;

import java.util.List;
import java.util.Map;

public interface IPersonnelManagementDataSheetsService extends IService<PersonnelManagementDataSheets> {

    List<Ry1402GroupTable> queryList(String dutyType, String positions1);

    PersonnelManagementDataSheets getByLoginUserId();

    List<String> getClassName();

    List<Object> getPostList(int type);

    /**
     * 分页查询所有员工
     * @return 分页后的员工列表
     */
    AjaxResult queryStaffList();

    /**
     * 统计性别人数
     * @return
     */
    Map<String, Integer> getGenderCount(String class22, String fe1e, String sector, String department);

    /**
     * 更新岗位和部门
     * @param dto
     * @return
     */
    boolean updatePositionAndDept(PersonnelManagementDto dto);

    /**
     * 更新工时
     * @param dto
     * @return
     */
    boolean updateWorkingHours(PersonnelManagementDto dto);

    List<PersonnelManagementDto> getPersonnelByCondition(String class22, String fe1e, String sector, String department, Integer id);

    CorpMember getCorpMemberByLogin();
}
